from PyQt5.Qt import *
import qdarkgraystyle

class Window(QWidget):
    def __init__(self):
        super().__init__()
        self.setWindowTitle('demo_372_qdarkgraystyle')
        self.resize(500, 500)
        self.setup_ui()
        QMetaObject.connectSlotsByName(self)

    def setup_ui(self):
        self.qdarkgraystyle_test()

    def qdarkgraystyle_test(self):
        v_layout = QVBoxLayout(self)
        label = QLabel('xxx')
        v_layout.addWidget(label)

        btn = QPushButton('xxx2')
        v_layout.addWidget(btn)

        cb = QComboBox()
        cb.addItems(['1', '2', '3'])
        v_layout.addWidget(cb)

        spinbox = QSpinBox()
        v_layout.addWidget(spinbox)


if __name__ == '__main__':
    import sys
    app = QApplication(sys.argv)

    win = Window()
    win.show()

    stylesheet = qdarkgraystyle.load_stylesheet_pyqt5()
    app.setStyleSheet(stylesheet)

    sys.exit(app.exec_())
